package com.spring.cloud.examples.feign;


import com.spring.cloud.examples.vo.TestPostVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "SPRING-CLOUD-EUREKA-GATEWAY",path = "/springCloudEurekaServiceProxy/server_info")
public interface ServerInfoApi {

    @RequestMapping(value = "/port",method= RequestMethod.GET)
    public String port();


    @RequestMapping(value = "/test_post",method= RequestMethod.POST)
    public String testPost(@RequestBody TestPostVo testPostVo);
}
